package cn.nzp.core.openapi.client.common;

import com.alibaba.fastjson.annotation.JSONField;


@SuppressWarnings("serial")
public class BeanResponse<T> extends BaseResponse {
    
    @JSONField(name="page_num")
	int pageNum = 0 ;
    @JSONField(name="total_count")
	int totalCount = 0;
    @JSONField(name="page_size")
	int pageSize = 0;
    
	T result ;

	
	public BeanResponse() {
	}

	public BeanResponse(int pageNum, int totalCount, int pageSize, T result) {
		super();
		this.pageNum = pageNum;
		this.totalCount = totalCount;
		this.pageSize = pageSize;
		this.result = result;
	}
	public BeanResponse(String retCode, String retMsg,int pageNum, int pageSize, int totalCount,T result) {
		this.retCode = retCode;
		this.retMsg = retMsg;
		this.pageNum = pageNum;
		this.totalCount = totalCount;
		this.pageSize = pageSize;
		this.result = result;
	}

	public int getPageNum() {
		return pageNum;
	}

	public void setPageNum(int pageNum) {
		this.pageNum = pageNum;
	}

	public int getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(int totalCount) {
		this.totalCount = totalCount;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public T getResult() {
		return result;
	}

	public void setResult(T result) {
		this.result = result;
	}

	public BeanResponse(String retCode, String retMsg) {
		super(retCode, retMsg);
	}

}
